package com.llap.exp190929.repository;

import com.llap.exp190929.entity.CardAccount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface CardAccountRepository extends JpaRepository<CardAccount, Integer> {

    CardAccount findByCardNo(String cardNo);

    void deleteByCardNo(String cardNo);

    CardAccount findByCardNoAndPassword(String cardNo, String password);
}
